//
//  LFBaseNavViewController.m
//  青岛生活圈
//
//  Created by 李立达 on 15/11/21.
//  Copyright © 2015年 李立达. All rights reserved.
//

#import "LFBaseNavViewController.h"

@interface LFBaseNavViewController ()

@end

@implementation LFBaseNavViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    _barview=[[UIView alloc]initWithFrame:CGRectMake(0, 0, KscreedWdith, KNavBarHeight+KStautsHeight)];
    
    _barview.backgroundColor=[UIColor lightGrayColor];
    
    [self.view addSubview:_barview];
    
    _leftButton=[UIButton buttonWithType:UIButtonTypeCustom];
    
    [_leftButton setImage:[UIImage imageNamed:@"nav_back"] forState:UIControlStateNormal];
    
    [_leftButton setFrame: CGRectMake(0, KStautsHeight, KNavBarHeight, KNavBarHeight)];
    [_leftButton addTarget:self action:@selector(backMethod) forControlEvents:UIControlEventTouchUpInside];
    
    [_barview addSubview:_leftButton];
    
    _rightButton =[UIButton buttonWithType:UIButtonTypeCustom];
    
    [_rightButton setImage:[UIImage imageNamed:@"nav_user" ] forState:UIControlStateNormal];
    
    [_rightButton setFrame:CGRectMake(KscreedWdith-KNavBarHeight, KStautsHeight, KNavBarHeight, KNavBarHeight)];
    
    [_rightButton addTarget:self action:@selector(loginMethod) forControlEvents:UIControlEventTouchUpInside];
    
    [_barview addSubview:_rightButton];
    
    _titleLabel =[[UILabel alloc]init];
    
    _titleLabel.text=@"shouye";
    
    [_titleLabel setFrame:CGRectMake(KNavBarHeight, KStautsHeight, KscreedWdith-KNavBarHeight*2, KNavBarHeight)];
    [_titleLabel setTextAlignment:NSTextAlignmentCenter];
    
    [_barview addSubview:_titleLabel];
    
}
-(void)backMethod
{
    return ;
}
-(void)loginMethod
{
    return ;
}
- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    
    self.navigationController.navigationBar.hidden = YES;
}

@end
